package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by HK on 16/9/5.
 *
 * 商家合作消息
 *
 */
@Entity
@Table(name = "market_merchant_cooperation_message")
@DynamicInsert
@DynamicUpdate
public class MarketMerchantCooperationMessage extends IDEntityMall{

    @Column(columnDefinition = "varchar(255) comment '标题'")
    private String title;
    @Column(columnDefinition = "varchar(255) comment '内容'")
    private String content;
    @Column(columnDefinition = "bigint comment '商家id'")
    private Long merchantId;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    @Override
    public String toString() {
        return "MarketMerchantCooperationMessage{" +
                "title='" + title + '\'' +
                ", id=" + id +
                ", content='" + content + '\'' +
                ", dateCreated=" + dateCreated +
                ", merchantId=" + merchantId +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
